#!/usr/bin/python

def writef(filename, info):
    f = open(filename, 'w')
    f.write(info)
    f.write('\n')
    f.flush()
    f.close()

def appendf(filename, info):
    f = open(filename, 'a')
    f.write(info)
    f.write('\n')
    f.flush()
    f.close()
